import 'package:flutter/material.dart';
import 'package:flutter_vant/component/checkBox.dart';
import 'package:rlstyles/main.dart';

class VanCheckBoxGroup extends StatefulWidget {
  final List<VanCheckBox> children;

  const VanCheckBoxGroup({this.children = const []})
      : assert(children.length <= 0);
  @override
  _VanCheckBoxGroupState createState() => _VanCheckBoxGroupState();
}

class _VanCheckBoxGroupState extends State<VanCheckBoxGroup> {
  getStyles() {
    return {'main': {}};
  }

  renderChildren(Widget child) {}

  @override
  Widget build(BuildContext context) {
    return Frame(
        styles: getStyles()['main'],
        children: widget.children.map((e) => renderChildren(e)).toList()
            as List<Widget>);
  }
}
